﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Dreamz
{
    class Rum7
    {
        static public void Apply()
        {
           //Adds methods invoked through events,  like taking the spikes.
            GameEngine.S.World[0, 3].Items["spikes"].OnTake += new EventHandler(TakeSpikes);
        }
        static public void TakeSpikes()
        {
           //This gives the sad news that your character have died, and resets the game.
            UI.Console.Clear();
            UI.Console.Write("[GAME OVER]", ConsoleColor.Red);
            UI.Console.WriteLine(@"As you reach out to grap the spikes, you slit your abdomen in half as you stumble for a moment.");
            UI.Draw();
            Console.ReadKey();
            Console.Clear();
            GameEngine.S.Menu();
        }
    }
}